<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入struts2的标签 -->
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>部门列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">

	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/main.css" type="text/css"/>

  </head>
  
  <body>
  	<jsp:include page="nav.jsp"/>
  	
  	<table class="ct" width="900" align="center" cellpadding="0" cellspacing="0">
  		<tr>
  			<td>部门ID</td>
  			<td>部门名字</td>
  			<td>操作</td>
		</tr>
  			
		<s:iterator value="#ds">
			<tr>
				<td>${id }</td>
				<td><a href="department_show.action?id=${ id }">${ name }</a></td>
				<td>
					<a href="department_updateInput.action?id=${ id }">更新</a>
					<a href="department_delete.action?id=${id }">删除</a>
					<a href="department_setDepScopeInput.action?id=${id }">设置可发文部门</a>
				</td>
			</tr>
		</s:iterator>  		
  	</table>
   
  </body>
</html>
